package Test1;

public class Car {
    String carName;
    int carAge;
    String carColor;

    //成员内部类也可被private、protected、public修饰
    class Engine{
        String EngineName;
        int EngineAge;
        Engine e = new Engine();

        public void show(){
            System.out.println(EngineName);
            System.out.println(carName);
            System.out.println(e.EngineName);

        }
    }
}
